home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
pgm_ctrl
/
cuactrls
/
cuactls.bas
< prev
next >
Wrap
BASIC Source File
|
1995-03-26
|
4KB
|
137 lines
Option Explicit
' GUI standard emulation codes (ConfigCUA())
Global Const OS2Mode = 32759
Global Const Windows3Mode = 32760
Global Const Windows4Mode = 32761
Global Const BorlandMode = 32762
Global Const CPSMode = 32763
Global CUAMode As Integer
' Border styles
Global Const BORDER_NONE = 0
Global Const BORDER_SINGLE = 1
Global Const BORDER_SHADOW = 2
Global Const BORDER_SUNKEN = 3
Global Const BORDER_RAISED = 4
Global Const BORDER_DIP = 5
Global Const BORDER_BUMP = 6
Global Const BORDER_SUNKENSINGLE = 7
Global Const BORDER_RAISEDSINGLE = 8
' Tool button image source
Global Const BTNSOURCE_STOCK = 0
Global Const BTNSOURCE_CUSTOM = 1
' Tool button states
Global Const BTNSTATE_UP = 0
Global Const BTNSTATE_DOWN = 1
Global Const BTNSTATE_INDETERMINATE = 2
' Tool button types
Global Const BTNTYPE_COMMAND = 0
Global Const BTNTYPE_TOGGLE = 1
' Check button values
Global Const CHECK_UNCHECKED = 0
Global Const CHECK_CHECKED = 1
Global Const CHECK_INDETERMINATE = 2
' Text styles
Global Const FONT_NORMAL = 0
Global Const FONT_SUNKEN = 1
Global Const FONT_RAISED = 2
' Lamp styles and colors
Global Const LAMP_MICRO = 0
Global Const LAMP_SMALL = 1
Global Const LAMP_ICON = 2
Global Const LAMP_LARGE = 3
Global Const LAMP_GRAY = 0
Global Const LAMP_GREEN = 1
Global Const LAMP_YELLOW = 2
Global Const LAMP_RED = 3
' Check button/Radio button alignment
Global Const OBJALIGN_LEFT = 0
Global Const OBJALIGN_RIGHT = 1
' Orientation (meter, slider, spin)
Global Const ORIENT_HORZ = 0
Global Const ORIENT_VERT = 1
' Picture alignment on command buttons
Global Const PICALIGN_LEFT = 0
Global Const PICALIGN_TOP = 1
' Standard status bar field
Global Const STATUS_BLANK = 0
Global Const STATUS_INS = 1
Global Const STATUS_CAPS = 2
Global Const STATUS_NUM = 3
Global Const STATUS_SCROLL = 4
Global Const STATUS_DATE = 5
Global Const STATUS_TIME = 6
' Standard Command/Toolbutton images
Global Const STDBUTTON_BLANK = 0
Global Const STDBUTTON_OK = 1
Global Const STDBUTTON_CANCEL = 2
Global Const STDBUTTON_HELP = 3
Global Const STDBUTTON_NEW = 4
Global Const STDBUTTON_OPEN = 5
Global Const STDBUTTON_SAVE = 6
Global Const STDBUTTON_PRINT = 7
Global Const STDBUTTON_EXIT = 8
Global Const STDBUTTON_CUT = 9
Global Const STDBUTTON_COPY = 10
Global Const STDBUTTON_PASTE = 11
Global Const STDBUTTON_UNDO = 12
Global Const STDBUTTON_MHELP = 13
Global Const STDBUTTON_FIRST = 14
Global Const STDBUTTON_PREV = 15
Global Const STDBUTTON_NEXT = 16
Global Const STDBUTTON_LAST = 17
Global Const STDBUTTON_NEWREC = 18
Global Const STDBUTTON_ASC = 19
Global Const STDBUTTON_DESC = 20
Global Const STDBUTTON_FIND = 21
Global Const STDBUTTON_FINDNEXT = 22
Global Const STDBUTTON_REPLACE = 23
Global Const STDBUTTON_ZOOM = 24
Global Const STDBUTTON_LOOK = 25
Global Const STDBUTTON_MAIL = 26
Global Const STDBUTTON_PALETTE = 27
Global Const STDBUTTON_STOP = 28
Global Const STDBUTTON_BACK = 29
Global Const STDBUTTON_DROP = 30
Global Const STDBUTTON_INDEX = 31
Global Const STDBUTTON_BOOK = 32
Global Const STDBUTTON_LOCK = 33
Global Const STDBUTTON_JUST = 34
Global Const STDBUTTON_LEFT = 35
Global Const STDBUTTON_CENTER = 36
Global Const STDBUTTON_RIGHT = 37
Global Const STDBUTTON_BOLD = 38
Global Const STDBUTTON_ITALIC = 39
Global Const STDBUTTON_UNDERLINE = 40
Declare Sub ConfigCUA Lib "CUARUN10.DLL" (ByVal Mode As Integer, ByVal Redraw As Integer)